package com.ftg.learn.service.impl;

import com.ftg.learn.entity.Clazz;
import com.ftg.learn.mapper.ClazzMapper;
import com.ftg.learn.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 实现类
 *
 * : 目标 类
 *
 *  showall关注点 (切点)
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/3/29 下午1:46
 */
@Service
public class ClazzServiceImpl implements ClazzService {

    @Resource
    ClazzMapper clazzMapper;

    @Override
    public List<Clazz> showall() {
        System.out.println("showall 开始执行了");
        return clazzMapper.showAll();
    }

}
